<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%@include file="../../include/meta.jsp"%>

<title>通用权限管理系统</title>
<%@include file="../../include/css.jsp"%>
<style type="text/css">
.functiongroup-row {
	margin-top: 5px;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.container-fluid .row div {
	margin-bottom: 10px;
}
</style>
</head>
<body>
	<%@include file="include/header.jsp"%>

	<div class="container-fluid">
		<c:forEach items="${functions}" var="f">
			<div class="row functiongroup-row">
				<div class="col-12">
					<i class="fas fa-th-list"></i>&nbsp;${f.functionGroup.name}
				</div>
			</div>
			<div class="row">
				<c:forEach items="${f.functionalModules}" var="fm">
					<div class="col-md-2 col-sm-12">
						<a class="btn btn-outline-primary btn-block"
							href="${pageContext.request.contextPath}/${fm.code}"> <i
							class="fas fa-user-tag fa-2x"></i><br> ${fm.name}
						</a>
					</div>
				</c:forEach>
			</div>
		</c:forEach>
	</div>

	<%@include file="../../include/js.jsp"%>

</body>
</html>